<script type="text/javascript" src="<?= base_url() ?>resource/js/layer/layer.js"></script>
<!--top结束-->
<div class="mian">
    <div class="mian1">
        <div class="mian2">
            <!--left start-->
            <?php $this->load->view('defaults/common/left'); ?>
            <!--left end-->
            <!--right start-->
            <div class="right">
                <!--breadcrumb start-->
                <div class="righta"><?= $this->breadcrumb->generateHTML(); ?> </div>
                <!--breadcrumb end-->
                <!-- contents start -->
                <div id="contents">
                    <div id="contents_container">
                        &nbsp;&nbsp;&nbsp;PID:<input type="text"  id="tran_order"   placeholder="example 38147"/>
                        >>><button type="button" onclick="create()"  style="margin-right: 20px;width: 150px; height: 30px; margin-left: 20px;" >LOCK</button>
                        <div id="tran_order_table_show"></div>
                    </div>
                </div>
                <!-- contents end -->
            </div>
            <!--right end-->
            <div class="clear"></div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(window).load(function() {
        $("#tran_order").focus();
    }); 
    function create() {
                var tran_order= $("#tran_order").val();
        tran_order=tran_order.replace(/(^\s*)|(\s*$)/g, "");
       if(tran_order!=''){
           window.location.href='<?= blang_url('wms/Lock/lock')?>/'+$('#tran_order').val()
       }else{
                    alert("<?= lang('wms_tips_20007') ?>");
       }
        
    }

</script>

